aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/fund/[id]/withdraw/+server.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/fund/[id]/withdraw/+server.js')
-rw-r--r--src/routes/(app)/fund/[id]/withdraw/+server.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routes/(app)/fund/[id]/withdraw/+server.js b/src/routes/(app)/fund/[id]/withdraw/+server.js
new file mode 100644
index 00000000..96d66413
--- /dev/null
+++ b/src/routes/(app)/fund/[id]/withdraw/+server.js
@@ -0,0 +1,6 @@
+import { json } from "@sveltejs/kit";
+import { auth, post } from "$lib/utils";
+
+export async function POST({ cookies, request }) {
+ return json(await post("/take", await request.json(), auth(cookies)));
+}